#include<stdio.h>
#include<iostream>
using namespace std;
char text[100];
int main(){
    printf("input text:");
    cin>>text;
    int i=0;
    printf("en choose 0,de choose 1:");
    int a=0;
    scanf("%d",&a);
    switch (a)
    {
    case 0:
         while(i<=100){   
        if(text[i]>=65&&text[i]<=90)text[i]=(text[i]-62)%26+65;
        if(text[i]>=97&&text[i]<=122)text[i]=(text[i]-94)%26+97;
        i++;}
        break;
    case 1:
         while(i<=100){   
        if(text[i]>=65&&text[i]<=90)text[i]=(text[i]-48)%26+65;
        if(text[i]>=97&&text[i]<=122)text[i]=(text[i]-48)%26+97;
        i++;}
        break;
    default:
        printf("wrong!") ;break;
    }

    cout<<text;
    return 0;
}